package org.ytor.core.sysapi.monitor.resp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * created by yangtong on 2025/7/6 20:56:58
 * <br/>
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Schema(description = "操作系统实时信息")
public class OperateSystemRealtimeResp {

    @Schema(description = "CPU使用率", example = "50%")
    private Double cpuUsageRate;

    @Schema(description = "已使用内存", example = "5.0 GB")
    private Long usedPhysicalMemory;

    @Schema(description = "内存使用率", example = "90%")
    private BigDecimal physicalMemoryUsageRate;

    @Schema(description = "数据采集时间戳", example = "1699123456789")
    private Long timestamp;
}